#include<stdio.h>
#include<ctype.h>
int main()
{
	char s[103]={};
	int a[26]={},b[26]={};
	scanf("%s",s);
	for(int i=0;s[i]!='\0';i++)
	{
		if(isupper(s[i]))
		{
		   a[s[i]-'A']++;	
		}
		if(islower(s[i]))
		{
			b[s[i]-'a']++;
		}
	}
	for(int i=0;i<26;i++)
	{
		if(a[i])
		{
			printf("The character %c has presented %d times.\n",i+65,a[i]);
		}
	}
	for(int i=0;i<26;i++)
	{
		if(b[i])
		{
			printf("The character %c has presented %d times.\n",i+97,b[i]);
		}
	}
	return 0;
}
